package com.qky.controller.userController;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.qky.model.user.User;
import com.qky.service.baseService.BaseService;

/**
 * 用来拦截用户的  增删改查
 * @author kaiyuan
 *
 * @param <E>
 */
@Controller
@RequestMapping("/user")
public class UserController<E> {
	@Resource
	BaseService<User> uBaseService;
	
	/*@RequestMapping("/success")
	public String successMvc(@RequestParam("name") String name,Model map) throws Exception {
		map.addAttribute("name",name);
		User user=new User();
		user.setName(name);
		userService.add(user)
		return "user/success";
	}*/
	
	/*@RequestMapping("/showUser")
	public String showUserGet(
			@RequestParam("name") String name,
			@RequestParam("pageIndex") Integer pageIndex,
			@RequestParam("pageSize") Integer pageSize, 
			ModelMap map) throws Exception {
		PageUtil pageUtil=userService.getUserListByPageUtil(pageIndex,pageSize,user);
		map.addAttribute("pageUtil",pageUtil);
		map.addAttribute("pageIndex",pageIndex);
		return "user/userShow";
	}*/
	/*@RequestMapping("/nearby")
	public String nearby(Model map) throws Exception {
		return "user/nearby";
	}*/
}
